#include<iostream>
using namespace std;

struct perInfo
{
	char addr[30];
	char tel[20];
};

struct person
{
	char name[20];
	char pID[20];
	struct perInfo *info;
};

int main()
{
	struct perInfo info = {"Korea Seoul", "333-4444"};
	struct person man = {"Mr.Lee", "820204-xxxx512"};
	man.info=&info;
	cout << "name : " << man.name << endl;
	cout << "pID : " << man.pID << endl;
	cout << "addr : " << man.info->addr << endl;
	cout << "tel: " << man.info->tel << endl;

	return 0;
}